package com.kf.controller;

import com.kf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ChrisGod
 */
@RestController
public class UserController {
    @Autowired
    private UserService userService;

    @GetMapping("helloWord")
    public String helloWord() {
        return "helloWord";
    }
    @GetMapping("deleteUserById")
    public boolean deleteUserById(Integer userId) {
        return userService.deleteUserById(userId);
    }
}
